import request from '@/utils/request'

// 查询多交货单列表
export function listMerge(query) {
  return request({
    url: '/system/merge/list',
    method: 'get',
    params: query
  })
}


// 查询多交货单列表
export function listMergeGuozhong(query) {
  return request({
    url: '/system/merge/listGuozhong',
    method: 'get',
    params: query
  })
}
// 查询多交货单详细
export function getMerge(czbh) {
  return request({
    url: '/system/merge/' + czbh,
    method: 'get'
  })
}

// 新增多交货单
export function addMerge(data) {
  return request({
    url: '/system/merge',
    method: 'post',
    data: data
  })
}

// 修改多交货单
export function updateMerge(data) {
  return request({
    url: '/system/merge',
    method: 'put',
    data: data
  })
}

<<<<<<< HEAD

// 过磅状态退回
export function updateMergegbztth(data) {
  return request({
    url: '/system/merge/gbztth',
    method: 'put',
    data: data
  })
}

// 车辆退车
export function updateMergeyj(data) {
  return request({
    url: '/system/merge/yj',
    method: 'put',
    data: data
  })
}
// 复磅标记取消
export function updateMergefb(data) {
  return request({
    url: '/system/merge/fb',
    method: 'put',
    data: data
  })
}

// 门禁修改
export function updateMergemenjin(data) {
  return request({
    url: '/system/merge/menjin',
    method: 'put',
    data: data
  })
}
// 修改多交货单
export function updateMergegx(data) {
  return request({
    url: '/system/merge/gengxin',
    method: 'put',
    data: data
  })
}

=======
>>>>>>> b4a0e2dba4b1f1e0b05e6d155df4272830d06f27
// 删除多交货单
export function delMerge(czbh) {
  return request({
    url: '/system/merge/' + czbh,
    method: 'delete'
  })
}

// 更新打印次数
export function getMergeDD(czbh) {
  return request({
    url: '/system/merge/dd/' + czbh,
    method: 'get'
  })
}
<<<<<<< HEAD


=======
>>>>>>> b4a0e2dba4b1f1e0b05e6d155df4272830d06f27
